/*
 * Copyright © 2022
 * @Author: zhangxiang
 * @Date: 2022-11-22 09:55:39
 * @LastEditors: zhangxiang
 * @LastEditTime: 2023-01-18 11:26:33
 * @Description:
 *
 */

import request from '@/utils/request'

/**
 * @description: 资源配额列表
 * @param {*} data
 * @return {*}
 */
export function getQuotaList(data) {
  return request({
    url: '/api/quota/list',
    method: 'post',
    data
  })
}

/**
 * @description: 菜单列表
 * @param {*} params
 * @return {*}
 */
export function getMenuNames(params) {
  return request({
    url: '/menu/query/list',
    method: 'get',
    params
  })
}

/**
 * @description: 更新菜单名
 * @param {*} data
 * @return {*}
 */
export function updateMenuName(data) {
  return request({
    url: '/menu/update',
    method: 'post',
    data
  })
}
